reftests: Rename a source file
authorMatthias Clasen <mclasen@redhat.com>
Sun, 31 Jan 2016 19:00:08 +0000 (14:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Jan 2016 19:11:01 +0000 (14:11 -0500)
Easier to keep track of things if the sources are names after
the test they are used in.

testsuite/reftests/Makefile.am
testsuite/reftests/animation-direction.c [new file with mode: 0644]
testsuite/reftests/label-attributes.c [deleted file]

index 369bf6f348aee48ac00141bb95c384519eab799e..8bd23a3a7f1ffdb7ee9fc84d5fa65a5d4fe5aae6 100644 (file)
@@ -506,7 +506,7 @@ libreftest_la_SOURCES =                     \
        statusbar-remove-all.c          \
        textview-border-windows.c       \
        textview-tags.c                 \
-       label-attributes.c              \
+       animation-direction.c           \
        $(NULL)
 
 -include $(top_srcdir)/git.mk
diff --git a/testsuite/reftests/animation-direction.c b/testsuite/reftests/animation-direction.c
new file mode 100644 (file)
index 0000000..7ee9902
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2016 Red Hat Inc.
+ *
+ * Author:
+ *      Matthias Clasen <mclasen@redhat.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "config.h"
+
+#include <gtk/gtk.h>
+
+#include "gtk-reftest.h"
+
+static gboolean
+unblock (gpointer data)
+{
+  reftest_uninhibit_snapshot ();
+  return G_SOURCE_REMOVE;
+}
+
+G_MODULE_EXPORT void
+strip_attributes_if_no_animation (GtkWidget *widget)
+{
+  gboolean enabled;
+
+  g_object_get (gtk_widget_get_settings (widget), "gtk-enable-animations", &enabled, NULL);
+  if (enabled)
+    return;
+
+  reftest_inhibit_snapshot ();
+  gtk_label_set_attributes (GTK_LABEL (widget), NULL);
+  g_timeout_add (500, unblock, NULL);
+}
diff --git a/testsuite/reftests/label-attributes.c b/testsuite/reftests/label-attributes.c
deleted file mode 100644 (file)
index 7ee9902..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (C) 2016 Red Hat Inc.
- *
- * Author:
- *      Matthias Clasen <mclasen@redhat.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "config.h"
-
-#include <gtk/gtk.h>
-
-#include "gtk-reftest.h"
-
-static gboolean
-unblock (gpointer data)
-{
-  reftest_uninhibit_snapshot ();
-  return G_SOURCE_REMOVE;
-}
-
-G_MODULE_EXPORT void
-strip_attributes_if_no_animation (GtkWidget *widget)
-{
-  gboolean enabled;
-
-  g_object_get (gtk_widget_get_settings (widget), "gtk-enable-animations", &enabled, NULL);
-  if (enabled)
-    return;
-
-  reftest_inhibit_snapshot ();
-  gtk_label_set_attributes (GTK_LABEL (widget), NULL);
-  g_timeout_add (500, unblock, NULL);
-}